<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    function text1() {
        function text2(a,b) {
            console.log(123);
            console.log(a+b);
        }
        return text2;
    }
    // text1()(3,4)

    function text3(add) {
        add();
        console.log(123)
    }
    function text4() {
        console.log(222)
    }
    text3(text4);
</script>